package com.wyd.strategy.demo1;

/**
 * @author Yudi Wang
 * @date 2022/1/5 16:40
 */
public class RedHeadDuck extends Duck{
    @Override
    protected void quack() {
        System.out.println("red head duck quack");
    }

    @Override
    protected void fly() {
        System.out.println("fly with swing");
    }
}
